package day9.generic;

/**
 * @author joker
 * @date 2022/4/19 0019 - 22:54
 */
public class OrderTest {
    public static void main(String[] args) {
        Person jack = new Person(18, "jack");
        Man man = new Man(20,"tom");
        OldPerson oldPerson=new OldPerson(1001);
        Order<? extends Person> or = new Order<Man>(18,"jack",man);
        System.out.println(or.toString());

        System.out.println(or.getT());
        System.out.println(or.toString());
    }
}
